/* <pre>
 * Copyright (c) The Loose Coupling Team.
 * Licensed under the Apache License, Version 2.0 (the "License"); 
 * you may not use this file except in compliance with the License. 
 * You may obtain a copy of the License at 
 *
 *      http://www.apache.org/licenses/LICENSE-2.0 
 *
 * Unless required by applicable law or agreed to in writing, software 
 * distributed under the License is distributed on an "AS IS" BASIS, 
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
 * See the License for the specific language governing permissions and 
 * limitations under the License.
 *</pre>
 */

package org.lc.eic.messaging.assembly;

import org.lc.eic.api.requestreply.async.RequestDispatcher;
import org.lc.eic.core.pipesandfilters.Pipe;
import org.lc.eic.messgeconstruct.requestreply.Reply;
import org.lc.eic.messgeconstruct.requestreply.Request;



/**
 *  TODO: Add type comment here!!
 *	@author <a href="mailto:p.lycke@googlemail.com">PaLy</a>
 *
 * 
 */
public class AsyncRequestDispatcher<I, O> implements RequestDispatcher<Request<I>, Reply<O>> {

	private Pipe<Request<I>> requestPipe;
	private Pipe<Reply<O>> replyPipe;
	
	/**
	 * @see org.lc.eic.api.requestreply.async.RequestDispatcher#getRequestPipe()
	 */
	public Pipe<Request<I>> getRequestPipe(){
		return requestPipe;
	}
	
	
	/**
	 * @see org.lc.eic.api.requestreply.async.RequestDispatcher#setReplyPipe(org.lc.eic.core.pipesandfilters.Pipe)
	 */
	public void setReplyPipe(Pipe<Reply<O>> replyPipe){
		this.replyPipe = replyPipe;
	}


	public Pipe<Reply<O>> getReplyPipe() {
		return replyPipe;
	}


	public void setRequestPipe(Pipe<Request<I>> requestPipe) {
		this.requestPipe = requestPipe;
	}
	
	
	
	
}
